package com.link_with_health.service;

import com.link_with_health.exception.BaseException;
import com.link_with_health.model.CommentEntity;

import java.util.List;
public interface CommentService {

    CommentEntity getCommentById(Long id) throws BaseException;

    List<CommentEntity> getCommentsByDrId(Long id) throws BaseException;

    List<CommentEntity> getCommentsByUserId(Long id) throws BaseException;

    List<CommentEntity> getCommentsByInquiryId(Long id) throws BaseException;

    List<CommentEntity> getCommentsByDoctorName(String name) throws BaseException;

    List<CommentEntity> getCommentByIdUsername(String username) throws BaseException;

    List<CommentEntity> getCommentByRating(Float rating) throws BaseException;

    List<CommentEntity> getCommentAll() throws BaseException;

    Float getCommentRating(Long doctorId) throws BaseException;

    int insertComment(CommentEntity entity) throws BaseException;

    int updateComment(CommentEntity entity) throws BaseException;

    int deleteComment(CommentEntity entity) throws BaseException;
}
